import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isModalShow: false,
    userInfo: {},
    isLogin: false,
  },
  getters: {
  },
  mutations: {
    changeModalShow(state, payload) {
      state.isModalShow = payload
    },
    changeUserInfo(state, payload) {
      state.userInfo = payload
    },
    changeLogin(state, payload) {
      state.isLogin = payload
    }
  },
  actions: {
  },
  modules: {
    
  },
  plugins: [createPersistedState()]
})
